﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;


namespace ClaseBase
{
    public class TrabajarTipoVehiculo
    {




        public DataTable traerTiposVehiculo()
            {
                using (DataTable dt = new DataTable())
                {
                    using (SqlConnection cn = new SqlConnection(ClaseBase.Properties.Settings.Default.CadenaConexion))
                    {
                        using (SqlDataAdapter da = new SqlDataAdapter("Select * from TIPOVEHICULO", cn))
                        {
                            da.Fill(dt);
                        }
                    }
                    return dt;
                }
            }
        




    }
}
